home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / xw2.000 / xw2 / xw / applications / README
Encoding:
Text File  |  1995-03-20  |  3.0 KB  |  80 lines

  1.  
  2.  
  3. XbW Sample applications
  4. =======================
  5.  
  6. Requirements:
  7.  
  8. - RAM in small quantities; 1.5 free megs should suffice
  9. - disk space in large quantities :)
  10.   don't try XbW with much less than about 5 megs; this is for XbW itself,
  11.   the C-sources and the megawin application. The bare minimum is about 2 megs
  12.   (XbW compiled, megawin not used).
  13. - X11 up and _running_ :)
  14.  
  15. adder:
  16. ====== A simple, two-function calculator allows to add or subtract two values
  17.        and displays the result in a separate object. The arithmetic is done
  18.        by a separate C-program (adder.c). It gets its data from the user
  19.        interface and produces two values: the result and a display status,
  20.        which are imported back into the user interface.
  21.  
  22.        Remark: calculating these values directly in XbW is much simpler :)
  23.  
  24. - You can see how to create a user interface with a simple "C" headerfile.
  25.   This C-file is called "addermfx.h"; it creates an user interface together
  26.   with a program interface (XBMFX) that exports and
  27.   imports "MFX-Groups". The MFX-Group used in this example is "MFI".
  28.  
  29. - You will find out how to activate the display status of a single object;
  30.   look at "TEST6" for that feature.
  31.  
  32. - See the Makefile on how to start that application (e.g.: "# make")
  33.  
  34. - Try using the "bw" and "color" options for the command
  35.  
  36.     @xbwstart(("test") ("color"));
  37.  
  38.   in file ./adder/startadder.mta. You will see that generation of b/w and
  39.   color user interfaces is quite simple. Have a look at /xw/x/xbwstart.mta
  40.   for that purpose.
  41.  
  42. - Use the object editor by pressing the middle mouse button on any object:
  43.   you can modify the contents of any VAR-Element in any object.
  44.  
  45. bidirectional:
  46. ==============
  47.        A simple, two-way interface analog to the calculator.
  48.        The Values entered in Window WD01 are copied to WD02. But
  49.        that is done by a user program ("move"). The complete
  50.        user interface and data interface ist created by XbW.
  51.        "startmove.mta" is a manually modified version of "movewdw.mta",
  52.        the automatically created user interface.
  53.  
  54. - You can see how to create a user interface with a simple "C" headerfile.
  55.   This C-file is called "movemfx.h"; it creates an user interface together
  56.   with a program interface (XBMFX) that exports MFI and
  57.   imports MFO.
  58.  
  59. - See the Makefile on how to start that application (e.g.: "# make")
  60.  
  61. megawin:
  62. ======== A program creates a metafile automatically; that metafile contains
  63.          several complete user interfaces ("projects"). These can be accessed
  64.          via buttons; every window in these projects can also be accessed.
  65.  
  66. - See that only the windows of a single project can be viewed at a time.
  67.  
  68. - XbW creates a file "megawin/megawin.prj"; if you start XbW with
  69.  
  70.     xbw megawin.prj
  71.  
  72.   the file is used directly and so the compilation of that file is skipped.
  73.  
  74. - See how fast XbW can handle really large user interfaces, especially when
  75.   loading them: XbW uses Memory Mapped File I/O for the database.
  76.   The sample database "megawin.prj" is about 2.3 Megs large :)
  77.  
  78.  
  79.  
  80.